<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选项卡</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            list-style: none;
        }
        .container{
            width: 300px;
            border: 1px solid skyblue;
            margin: 30px auto;
        }
        .container .tab{
            display: flex;
        }
        .container .tab li{
            flex: 1;
            padding: 10px 0;
            background-color: aqua;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <ul class="tab">
            <li>登录</li>
            <li>注册</li>
        </ul>

        <div class="content">
            <div>登陆内容</div>
            <div>注册内容</div>
        </div>
    </div>
</body>
</html> 